package com.mengbuyun.uniplugin;


public class Params {
    //  类型：{时间}
    private String type = "time";
//    ${code}
    private String code;
    private Object value; // time 为Date类型
    private String pattern; // 当type==time是，生效
    public Params() {
    }
    public Params(String type, String code, Object value) {
        this.type = type;
        this.code = code;
        this.value = value;
    }
    public Params(String type, String code, Object value, String pattern) {
        this.type = type;
        this.code = code;
        this.value = value;
        this.pattern = pattern;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }
}
